<?php 

abstract class goods{
    protected $name;
    final public function setname($name){
        $this->name=$name;
    }
    public abstract function getname();
    }
    
?>